		View = function(width,height,can){
		this.controlPanel = document.getElementById("controlPanel");
		this.pxFromLeft = 0;
		this.pxFromTop = 0;
			
			this.domainView = new DomainView(width,height,can);
			this.setModel = function(model){
			this.domainView.setModel(model);
			}
			this.setRatio = function(x,y){
			this.domainView.setRatio(x,y);
			}
			this.setDotRadius = function(rad){
			this.domainView.setDotRadius(rad);
			}
			this.update = function(tpf,columns,rows,nodes){
			this.domainView.update(tpf,columns,rows,nodes);
			}
			this.moveDot = function(i,x,y){
			this.domainView.moveDot(i,x-this.pxFromLeft,y-this.pxFromTop);
			}
			this.adjustCanvas = function(){
			this.pxFromLeft = $(can).offset().left;
			this.pxFromTop = $(can).offset().top;
			this.domainView.adjustCanvas();
			}
			this.updateShownConnections = function(nr){
			this.domainView.updateShownConnections(nr);
			}
		}